import request from '@/utils/request'

const trading = {
    //线上支付查询
    paySearchList(query) {
        return request({
            url: '/com.mmk.pay.api.AdminMerchantOrderProvider/1.0.0/getList.html',
            method: 'post',
            data: query
        })
    },
    //线上支付查询(导出)
    paySearchExport(query) {
        return request({
            url: '/com.mmk.pay.api.AdminMerchantOrderProvider/1.0.0/export.html',
            method: 'post',
            data: query,
            responseType: 'blob'
        })
    },
    //退款查询 
    refundSearchList(query) {
        return request({
            url: '/com.mmk.pay.api.AdminRefundOrderProvider/1.0.0/listRefundOrder.html',
            method: 'post',
            data: query,
        })
    },
    //退款查询(导出) 
    refundSearchExport(query) {
        return request({
            // url: '/com.mmk.pay.api.AdminRefundOrderProvider/1.0.0/exportRefundOrder.html',
            url:"/com.mmk.pay.api.AdminRefundOrderProvider/1.0.0/exportRefundOrder.html",
            method: 'post',
            data: query,
            responseType: 'blob'
        })
    },
}


export default trading